/**
 * 
 */
package fr.univ_tln.inf9.exaplanning.run;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;

import fr.univ_tln.inf9.exaplanning.api.db.SessionManager;
import fr.univ_tln.inf9.exaplanning.api.facade.University;
import fr.univ_tln.inf9.exaplanning.api.salle.Building;
import fr.univ_tln.inf9.exaplanning.api.salle.Material;
import fr.univ_tln.inf9.exaplanning.api.salle.Room;
import fr.univ_tln.inf9.exaplanning.controleur.facade.UniversityController;
import fr.univ_tln.inf9.exaplanning.controleur.salle.BuildingController;
import fr.univ_tln.inf9.exaplanning.controleur.salle.RoomController;
import fr.univ_tln.inf9.exaplanning.controleur.utilisateur.UserController;
import fr.univ_tln.inf9.exaplanning.gui.facade.JFrameFacade;




/**
 * @author pivi
 *
 */
public class Test {

	/**
	 * @param args
	 * @throws NoSuchFieldException 
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 * @throws NoSuchMethodException 
	 * @throws SQLException 
	 * @throws IOException 
	 * @throws IllegalArgumentException 
	 * @throws SecurityException 
	 */
	public static void main(String[] args) throws SecurityException, IllegalArgumentException, IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, NoSuchFieldException {
		
		
		/**
		 * Test sur Room
		 */
		
		List<String> lm = new LinkedList<String>();
		List<String> lm2 = new LinkedList<String>();
		List<String> lm3 = new LinkedList<String>();
		
		/*Room r = new Room("102",lm );
		Room r2 = new Room("104",lm2);
		Room r3 = new Room("001",lm3);
		
		r.add(new Material("tableau"));
		r.add(new Material("projo"));
		r.add(new Material("chaise longue"));
		
		r2.add(new Material("tableau"));
		r2.add(new Material("ordinateur"));
		r2.add(new Material("tableau"));
		
		r3.add(new Material("tableau"));
		r3.add(new Material("super calculateur"));
		r3.add(new Material("scanner 3d"));*/
		
		
		/*RoomController controller = new RoomController(r3);
		controller.displayViews();*/
		
		/**
		 * Test sur building
		 */

		List<String> lr = new LinkedList<String>();
		/**List<String> lr2 = new LinkedList<String>();
		List<String> lr3 = new LinkedList<String>();*/
		
		/*Building b = new Building("T",14,64,lr);
		 b.add(r);
		 b.add(r2);
		 b.add(r3);*/
		 
		/*BuildingController controller2 = new BuildingController(b);
		controller2.displayViews();*/
		

		University u = new University();
		
		UniversityController contro = new UniversityController(u);
		contro.displayViews();
		
	}
	
	
	

}
